﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace QUAN_LY_MUON_TRA_SACH
{
    public partial class rpt_luot_muon_theo_nam : DevExpress.XtraReports.UI.XtraReport
    {
        public rpt_luot_muon_theo_nam()
        {
            InitializeComponent();
        }
        public void BindData()
        {
            rtxtunam.Text = FORM_MAIN.frmmain.txttunam.Text;
            rtxdennam.Text = FORM_MAIN.frmmain.txtdennam.Text;
            xlbngay.Text = DateTime.Today.Day.ToString();
            xlbthang.Text = DateTime.Today.Month.ToString();
            xlbnam.Text = DateTime.Now.Year.ToString();
            xlbnguoilap.Text = FORM_MAIN.frmmain.siInfo.Caption;
            colnam.DataBindings.Add("Text", DataSource,"NAM");
            colsoluotmuon.DataBindings.Add("Text", DataSource, "SO_LUOT_MUON");
        }
    }
}
